//
//  UIImage+image.m
//  youkan
//
//  Created by mac mini on 16/2/24.
//  Copyright © 2016年 Honsintech. All rights reserved.
//

#import "UIImage+image.h"

@implementation UIImage (image)
+(instancetype)imageWithOriginalName:(NSString*)imageName{
    UIImage *image =[UIImage imageNamed:imageName];
    return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}
+(instancetype)imageWithStretchableName:(NSString *)imageName{
    UIImage *image =[UIImage imageNamed:imageName];
    return [image stretchableImageWithLeftCapWidth:image.size.width*0.5 topCapHeight:image.size.height*0.5];
}
@end
